a = input()
c = a.split(",")
d = c[0]
for i in c:
    if i > d:
        d = i
print(d)
